/*
 * 计算考生的平均分。根据score表中不同专家为同一考生打的分数，update到final_score表
 */
package controller.action;

import model.service.CalculateScoreService;
import com.opensymphony.xwork2.ActionSupport;

public class CalculateScore extends ActionSupport {
	private String result;
	private CalculateScoreService calculateScoreService;
	private String userInfo;
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public CalculateScoreService getCalculateScoreService() {
		return calculateScoreService;
	}
	public void setCalculateScoreService(CalculateScoreService calculateScoreService) {
		this.calculateScoreService = calculateScoreService;
	}
	public String getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(String userInfo) {
		this.userInfo = userInfo;
	}
	
	public String calculateScore(){
		result = calculateScoreService.calculateScore(userInfo);
		return SUCCESS;
		
	}
}
